package com.rightsidetech.trade.dtos.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

@Data
public class TdCommodityApplyAfterServiceReq implements Serializable {
    @ApiModelProperty(value = "订单编号", required = true)
    @NotBlank(message = "订单编号不能为空")
    @Length(max = 18,message = "订单编号过长")
    private String orderNo;

    @ApiModelProperty("申请原因")
    @Length(max = 30,message = "申请原因长度过长")
    @Pattern(regexp = "^[0-9a-zA-Z()（）,.?!，。？“”·、+\\-\"\"=\\u4e00-\\u9fa5]{0,}$", message = "申请原因不能包含特殊字符")
    private String reason;
}
